package com.fr.schedule;

import com.fr.base.FRContext;
import com.fr.base.core.util.TemplateUtils;
import com.fr.base.file.ConfigManager;
import com.fr.web.core.WebUtils;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.Map;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public abstract class ScheduleDispatcher
{
  public static void dealWithDashBoard(HttpServletRequest paramHttpServletRequest, HttpServletResponse paramHttpServletResponse)
    throws IOException
  {
    PrintWriter localPrintWriter = WebUtils.createPrintWriter(paramHttpServletResponse);
    Map localMap = WebUtils.createTemplateMap(paramHttpServletRequest);
    localMap.put("charset", FRContext.getConfigManager().getServerCharset());
    TemplateUtils.dealWithTemplate("com/fr/schedule/web/schedule.html", localPrintWriter, localMap);
    localPrintWriter.flush();
    localPrintWriter.close();
  }
}